package com.totoro.motan.controller;

import com.totoro.motan.service.IService;
import com.weibo.api.motan.config.springsupport.annotation.MotanReferer;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ClientController {
    //@MotanReferer(basicReferer = "basicRefererConfigBean")
    @MotanReferer
    IService iService;

    @GetMapping("/test")
    public String test() {
        return "rpc调用结果：" + iService.say();
    }
}
